﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RentHouse.Common;
using RentHouse.DTO;

namespace RentHouse.IService
{
  public  interface IAdminUserService:IServiceSupport
    {
        /// <summary>
        /// 查询列表，模糊查询加分页
        /// </summary>
        /// <param name="length"></param>
        /// <param name="start"></param>
        /// <param name="name"></param>
        /// <param name="rowCount"></param>
        /// <returns></returns>
        List<AdminUserDTO> GetList(int length, int start, string name, ref int rowCount);

        AjaxResult Add(AdminUserAddDTO adminUserAdd);

        AjaxResult Delete(long id);

        AjaxResult Deletes(long[] id);

        List<PermissionDTO> GetPermissionsById(long id);

    }
}
